package com.ponhu.ea2.stockcenter.provider;

import com.ponhu.ea2.stockcenter.properties.StockProperties;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import springfox.documentation.oas.annotations.EnableOpenApi;

@Slf4j
@EnableOpenApi
@EnableDiscoveryClient
@EnableAspectJAutoProxy(exposeProxy = true, proxyTargetClass = true)
@MapperScan(basePackages = "com.ponhu.ea2.stockcenter.provider.mapper")
@EnableConfigurationProperties({StockProperties.class})
@SpringBootApplication
public class StockProviderApplication {

    public static void main(String[] args) {
        SpringApplication.run(StockProviderApplication.class, args);
        log.info("库存Provider服务启动成功！");
    }

}